package com.paw.logback.nacos;


import cn.hutool.core.date.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * @author lvzihai
 * @date 2021/7/26
 **/
@Service
@Slf4j
public class LogScheduling {


  @Scheduled(cron="0/1 * * * * ? ")
  public void logTask(){
    log.debug("log debug {}",DateUtil.now());
    log.info(" log  info {}", DateUtil.now());
    log.error("log error {}",DateUtil.now());
  }

}
